---
layout: m1x_soap
title: Product Tag Remove
---

<h3><a name="product_tag.remove-Module%3ATagAPI"></a>Module: Tag API</h3>

<h4><a name="product_tag.remove-Resource%3Acatalogproducttag"></a>Resource: catalog_product_tag</h4>

<p><b>Aliases</b>: product_tag</p>


<h5><a name="product_tag.remove-Method%3A"></a>Method:</h5>

<ul>
	<li>catalog_product_tag.remove (SOAP V1)</li>
	<li>catalogProductTagRemove (SOAP V2)</li>
</ul>


<p>Allows you to remove an existing product tag.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> tagId </td>
<td> Tag ID </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Description </th>
</tr>
<tr>
<td> boolean\int </td>
<td> True (1) if the product tag is removed </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>

<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 104 </td>
<td> Requested tag does not exist. </td>
</tr>
<tr>
<td> 107 </td>
<td> Error while removing tag. Details in error message. </td>
</tr>
</tbody></table>


<h4><a name="product_tag.remove-Examples"></a>Examples</h4>

<h5><a name="product_tag.remove-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$client = new SoapClient('http://magentohost/api/soap/?wsdl');

// If somestuff requires API authentication,
// then get a session token
$session = $client-&gt;login('apiUser', 'apiKey');

$result = $client-&gt;call($session, 'catalog_product_tag.remove', '3');
var_dump ($result);</pre>
		</div>
</div></div>

<h5><a name="product_tag.remove-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductTagRemove($sessionId, '3');
var_dump($result);</pre>
		</div>
</div></div>


<h5><a name="product_tag.remove-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $proxy-&gt;catalogProductTagRemove((object)array('sessionId' =&gt; $sessionId-&gt;result, 'tagId' =&gt; '3'));
var_dump($result-&gt;result);</pre>
		</div>
</div></div>


